package com.ylbh.modules.orderreturn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylbh.common.exception.NormalException;
import com.ylbh.common.pojo.orderreturn.dto.OrderReturnListDTO;
import com.ylbh.common.utils.PageUtils;
import com.ylbh.modules.business.entity.ShoppingUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 商城订单返佣
 */
public interface OrderReturnService extends IService<ShoppingUser> {

    /**
     * 商城订单返佣
     * @param orderReturnListDTO
     * @return
     */
    PageUtils queryOrderReturnList(OrderReturnListDTO orderReturnListDTO);

    /**
     * 导出订单返佣
     * @param response
     * @param request
     * @throws NormalException
     */
    void orderReturnExcel(HttpServletResponse response, HttpServletRequest request) throws NormalException;

    /**
     * 导出商城推广佣金
     * @param response
     * @param request
     * @throws NormalException
     */
    void promotionCommissionExcel(HttpServletResponse response, HttpServletRequest request) throws NormalException;
}
